package com.usian.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
//@Table(name = "user")
@TableName(value = "user")
public class User {
//  @Column(name = "userId")
//  @Id
  @TableId(type = IdType.AUTO,value = "userId")
  private Integer userId;

@TableField(value = "userName")
private String userName;

  private String password;

//  @Column(name = "userDescription")
@TableField(value = "userDescription")
  private String userDescription;

//  @Column(name = "inputDate")
  @TableField(value = "inputDate")
  @DateTimeFormat(pattern = "yyyy-MM-dd")
  private Date inputDate;

//  @Column(name = "input_date_str")
  @TableField(value = "input_date_str")
  private String inputDateStr;

//  @Column(name = "role_id")
  @TableField(value = "role_id")
  private Integer roleId;

//  @Column(name = "user_type")
  @TableField(value = "user_type")
  private Integer userType;

}
